package com.dodi.spring.propertyInject;

public class Person {

	private Phone phone;
	private Student student;
	private String name;

	public Phone getPhone() {
		return phone;
	}
	
	

	public Student getStudent() {
		return student;
	}



	public void setStudent(Student student) {
		this.student = student;
	}



	public void setPhone(Phone phone) {
		this.phone = phone;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "Person [phone=" + phone + "]";
	}
	
	
	
}
